package cate.game.role.friend.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBFriend;

@ClientMsg(title = "好友推荐 の 请求")
public class FriendRecommendReq implements MsgInput {
    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.friend.recommend(cc.getRole());
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBFriend.RECOMMEND_REQ;
    }
}
